// 引入组件
import Home from "../pages/Home"
import Teacher from "../pages/Teacher.vue"
import Address from "../pages/Address.vue"
import Course from "../pages/Course.vue"
import CourseDetail from "../pages/CourseDetail.vue"
import Register from "../pages/Register.vue"
import Login from "../pages/Login.vue"
import Cart from "../pages/Cart.vue"
import OrderConfirm from "../pages/OrderConfirm.vue"
import UserCenter from "../pages/user/Center.vue"
export const routes = [
  {
    path: "/",
    name: "home",
    component: Home
  },
  {
    path: "/teacher",
    name: "teacher",
    component: Teacher
  },
  {
    path: "/address",
    name: "address",
    component: Address
  },
  {
    path: "/course",
    name: "course",
    component: Course
  },
  {
    path: "/course_detail",
    name: "coursedetail",
    component: CourseDetail
  },
  {
    path: "/register",
    name: "register",
    component: Register
  },
  {
    path: "/login",
    name: "login",
    component: Login
  },
  {
    path: "/cart",
    name: "cart",
    component: Cart
  },
  {
    path: "/orderconfirm",
    name: "orderconfirm",
    component: OrderConfirm
  },
  {
    path: "/user/center",
    name: "usercenter",
    component: UserCenter
  },
  // {
  // 其它路由
  // }
];